// import Vue from 'vue'
// import Router from 'vue-router'
// import {
//   constantRouterMap,
//   asyncRouterMap
// } from '@/config/router.config'

// Vue.use(Router)

// export default new Router({
//   mode: 'history',
//   scrollBehavior: () => ({
//     y: 0
//   }),
//   routes: constantRouterMap.concat(asyncRouterMap)
// })
import Vue from 'vue'
import Router from 'vue-router'
import { constantRouterMap, asyncRouterMap } from '@/config/router.config'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: constantRouterMap.concat(asyncRouterMap)
})
